package com.scenic.rd_android;

import android.content.Intent;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import android.test.suitebuilder.annotation.LargeTest;

import com.nova.scenic.projectlibs.util.collection.Collections;
import com.nova.scenic.projectlibs.util.debug.MyLog;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

import java.util.List;

/**
 * Created by scenic on 16/6/8.
 */
@RunWith(AndroidJUnit4.class)
@LargeTest
public class TestRDActivity {

    MyLog myLog = new MyLog(TestRDActivity.class.getName());

    @Rule
    public ActivityTestRule<RDActivity> mRDActivity = new ActivityTestRule<RDActivity>(RDActivity.class, true, true);

    @Test
    public void testGetActivityFoldList(){
        mRDActivity.launchActivity(new Intent());
        List<String> list = mRDActivity.getActivity().getActivityFoldList(mRDActivity.getActivity());
        String value = Collections.showCollection(list,null);
        System.out.println(value);
        myLog.info("tessd============");
    }

}
